package pers.xds.wtuapp.web.es.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import pers.xds.wtuapp.web.es.bean.EsAcquisition;

/**
 * @author DeSen Xu
 * @date 2023-02-17 22:37
 */
@Repository
public interface EsAcquisitionRepository extends ElasticsearchRepository<EsAcquisition, Integer> {


    /**
     * 根据收购订单标题搜索
     * @param title 收购订单标题
     * @param page 分页(<b>页面从0开始，而非1</b>)
     * @return 匹配的商品
     */
    Page<EsAcquisition> searchByTitle(String title, Pageable page);

}
